package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.dto.DishDto;
import com.itheima.pojo.Dish;
import com.itheima.pojo.Employee;
import com.itheima.vo.DishListVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DishMapper extends BaseMapper<Employee> {
    int insertDish(Dish dish);

    int updateDish(Dish dish);

    int deleteDish(@Param("ids") String[] ids);

    List<DishListVo> selectDishList(String categoryId);

    List<DishListVo> selectDishPage(@Param("name") String name, @Param("index") Integer index, @Param("pageSize") Integer pageSize);

    DishDto selectDishById(@Param("id") String id);

    int updateStatusById(@Param("status") int status, @Param("ids") String... ids);
}
